import request from '@/utils/request'

export const getDepartmentApi = () => request.get('/company/department')

export const getManagerListApi = () => request.get('/sys/user/simple')

/**
 * 新增组织
 * ***/
export const addDepartmentApi = (data) => request.post('/company/department', data)

export const getDepartmentDetailApi = (id) => request.get(`/company/department/${id}`)

/** *
 * 更新部门
 * ***/
export const updateDepartmentApi = (data) => request.put(`/company/department/${data.id}`, data)

/**
 * 删除部门
 *
 */

export const delDepartmentApi = (id) => request.delete(`/company/department/${id}`)
